/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

// fills
.fill(@color) {
  background-color: @color !important;
}

.fill-blue {
  .fill(@w-blue);
}
.fill-green {
  .fill(@w-green);
}
.fill-yellow {
  .fill(@w-yellow);
}
.fill-red {
  .fill(@w-red);
}
.fill-orange {
  .fill(@w-orange);
}
.fill-pink {
  .fill(@w-pink);
}
.fill-purple {
  .fill(@w-purple);
}
.fill-graphite {
  .fill(@graphite);
}
.fill-graphite-dark {
  .fill(@graphite-dark);
}

// texts
.text(@color) {
  color: @color !important;
}

.text-blue {
  .text(@w-blue);
}
.text-green {
  .text(@w-green);
}
.text-yellow {
  .text(@w-yellow);
}
.text-red {
  .text(@w-red);
}
.text-orange {
  .text(@w-orange);
}
.text-pink {
  .text(@w-pink);
}
.text-purple {
  .text(@w-purple);
}
.text-graphite {
  .text(@graphite);
}
.text-graphite-dark {
  .text(@graphite-dark);
}
.text-white {
  .text(#fff);
}
.text-ephemeral {
  .accent-color();
}

// fonts
.font-size(@size) {
  font-size: @size !important;
}

.font-size-xxs {
  .font-size(@font-size-xxs);
}
.font-size-xs {
  .font-size(@font-size-xs);
}
.font-size-sm {
  .font-size(@font-size-sm);
}
.font-size-md {
  .font-size(@font-size-md);
}
.font-size-lg {
  .font-size(@font-size-lg);
}
.font-size-xl {
  .font-size(@font-size-xl);
}
.font-size-xxl {
  .font-size(@font-size-xxl);
}

.font-weight(@weight) {
  font-weight: @weight !important;
}

.font-weight-bold {
  .font-weight(@font-weight-bold);
}
.font-weight-regular {
  .font-weight(@font-weight-regular);
}
.font-weight-light {
  .font-weight(@font-weight-light);
}

// accent colors
.accent-color-0 {
  color: @accent_colors-0;
}
.accent-color-1 {
  color: @accent_colors-1;
}
.accent-color-2 {
  color: @accent_colors-2;
}
.accent-color-3 {
  color: @accent_colors-3;
}
.accent-color-4 {
  color: @accent_colors-4;
}
.accent-color-5 {
  color: @accent_colors-5;
}
.accent-color-6 {
  color: @accent_colors-6;
}
.accent-color-7 {
  color: @accent_colors-7;
}
.accent-color-bot {
  color: #fff;
}
.accent-color-temporary {
  color: @graphite;
}

// background colors
.bg-color(@color) {
  background-color: @color !important;
}

.bg-color-ephemeral {
  .accent-background-color(16%);
}
